//
//  SLWebViewController.h
//  shunlianPower2
//
//  Created by 陈镇 on 2018/1/4.
//  Copyright © 2018年 顺联网络. All rights reserved.
//


#import <WebKit/WebKit.h>
#import "SLViewController.h"
NS_ASSUME_NONNULL_BEGIN

@interface SLWebViewController : SLViewController <WKUIDelegate, WKNavigationDelegate>


@property (nonatomic, strong) WKWebView *webView;
/** 获取该页面的html */
@property (nonatomic, strong) NSString *url;
@property (nonatomic, strong) NSString *htmlString;
/** 进度条 */
@property (nonatomic, strong) UIProgressView *progress;
/** 自定义title的 - 就不用获取页面本身的Title */
@property (nonatomic, copy) NSString *custemTitle;

/** 返回按钮 */
@property (nonatomic, strong) UIBarButtonItem *backItem;
/** 关闭 */
@property (nonatomic, strong) UIBarButtonItem *closeItem;

- (instancetype)initWithUrl:(NSString *)aUrl;

- (instancetype)initWithHTMLString:(NSString *)htmlString;



@end


NS_ASSUME_NONNULL_END
